package com.itheima.reggie.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class DishDto extends Dish implements Serializable {

    //口味集合
    private List<DisFlavor> flavors = new ArrayList<>();

    //分类名称
    private String categoryName ;

    //购买数量
    private Integer copies ;

    @Override
    public String toString() {
        return super.toString() + " , DishDto{" +
                "disFlavors=" + flavors +
                ", categoryName='" + categoryName + '\'' +
                ", copies=" + copies +
                '}';
    }
}
